﻿function selectstart()      
{
	event.returnValue=false;
}

function mousedown() 
{
	if (event.button==2)
	{
	    event.returnValue=false;
	}
}

function keydown(e)
{
	if (event.ctrlKey && event.keyCode==67) 
	{
		event.returnValue=false;
	}
}

if(window.navigator.userAgent.toLowerCase().indexOf("firefox") == -1)
{
    document.onselectstart=selectstart;
    document.onmousedown=mousedown;
    document.onkeydown=keydown;
}

if(window.attachEvent)
{
    window.attachEvent("onload",onloadEvent);
}
else
{
    window.addEventListener("load",onloadEvent,false);
}

function onloadEvent()
{
    document.body.oncopy=function()
    {  
        event.returnValue = false;
        clipboardData.clearData();
    }
}



